// NOTE: Before taking this test, let Roman run through JavaScript classes
// in case you didn't get a lot of practice with them.

/* Create a Calculator class that takes no parameters and has no instance
 * variables. Define a function add(n1, n2) that takes two numbers and returns
 * the sum. Also, define a function square(n) that takes one number and returns
 * that number raise to the power of 2.
 */

// Define Calculator class here
// TO DO

/* These will test to make sure your code is running correctly. Check
 * the console for output. Code until you pass all the tests.
 */
 
function printTest(testNum, result) {
  console.log("Test " + testNum + " " + (result ? "passed" : "failed") + "!");
}

var calc = new Calculator();
printTest(1, calc.add(2, 3) == 5);
printTest(2, calc.square(3) == 9);